typedef BoolCallback = void Function(bool);